namespace B.Z.Inventory.API.Read.DTO
{
    /// <summary>
    /// 库存金额占比统计DTO
    /// </summary>
    public class InventoryAmountRatioDto
    {
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
        
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; }
        
        /// <summary>
        /// 商品金额占比列表
        /// </summary>
        public List<GoodsAmountRatio> GoodsAmountRatios { get; set; } = new List<GoodsAmountRatio>();
    }
    
    /// <summary>
    /// 商品金额占比信息
    /// </summary>
    public class GoodsAmountRatio
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int GoodsId { get; set; }
        
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }
        
        /// <summary>
        /// 商品编号
        /// </summary>
        public string GoodsNumber { get; set; }
        
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }
        
        /// <summary>
        /// 单价
        /// </summary>
        public decimal UnitPrice { get; set; }
        
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; }
        
        /// <summary>
        /// 金额占比（百分比）
        /// </summary>
        public double AmountPercentage { get; set; }
    }
}